import React from 'react';
import  {HashRouter as Router, Route, Routes } from 'react-router-dom';
import Login from './pages/login/index.jsx';
import NewCar from './pages/newCar/index.jsx';
import Rank from './pages/rank/index.jsx';

function App() {
  return (
    <div className="App">
      <Router>
            <Routes>
                <Route path="/loign" exact component={Login} />
                <Route path="/newCar" component={NewCar} />
                <Route path="/rank" component={Rank} />
            </Routes>
        </Router>
    </div>
  );
}

export default App;
